package com.yml.mall.carts.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * @ClassName CartsDTO
 * @Author Administrator
 * @Date 2020/4/13   10:08
 */

@Data
@Accessors(chain = true)
@ApiModel("购物车返回数据")

public class CartsDTO {

    @ApiModelProperty("产品ID")
    Integer id ;

    @ApiModelProperty("用户ID")
    Integer userId;

    @ApiModelProperty("产品ID")
    Integer productId ;

    @ApiModelProperty("采购数量")
    Integer quantity;

    @ApiModelProperty("商品名字")
    String productName;

    @ApiModelProperty("产品副标题")
    String productSubtitle;

    @ApiModelProperty("产品主图")
    String productMainImage;

    @ApiModelProperty("产品价格")
    BigDecimal productPrice;

    @ApiModelProperty("产品状态")
    Integer productStatus;

    @ApiModelProperty("总价格")
    BigDecimal productTotalPrice;

    @ApiModelProperty("库存")
    Integer productStock;

    @ApiModelProperty("是否被选中")
     boolean productSelected;

}
